<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .outer{
            height: 500px;
            border-bottom: 10px black solid;
            margin: 50px auto;
            overflow: hidden;
        }

        .box1{
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #bfa;
            
            animation: ball 2s forwards;
        }

        @keyframes ball{
            0%{
                margin-top: 0;
                animation-timing-function: cubic-bezier(1.00,-0.04,1.00,1.00);
            }

            40%{
                margin-top: 400px;
                margin-left: 100px;
                animation-timing-function: cubic-bezier(0.37,1.10,1.00,1.00); 
            }

            70%{
                margin-top: 100px;
                margin-left: 150px;
                animation-timing-function: cubic-bezier(1.00,-0.04,1.00,1.00);
            }

            80%{
                margin-top: 400px;
                margin-left: 200px;
                animation-timing-function: cubic-bezier(0.37,1.10,1.00,1.00); 
            }

            90%{
                margin-top: 200px;
                margin-left: 250px;
                animation-timing-function: cubic-bezier(1.00,-0.04,1.00,1.00); 
            }

            100%{
                margin-top: 400px;
                margin-left: 300px; 
            }
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="box1"></div>
    </div>
</body>
</html>